using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Zeny.Common.Dao;
using Zeny.Data.Domain.Exp;
using Zeny.Data.Domain.basedata;

namespace Zeny.Business.ExpSample.Dao
{
    public class DepartmentDao : BaseEntityDao<Department>
    {
        public DepartmentDao()
        {
        }

        public bool existDeptCode(String deptCode)
        {
            return CurrentSession.QueryOver<Department>().Where(c => c.departCode == deptCode).List().Count != 0;
        }
    }
}